package com.aps.server.entity;

import com.aps.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 工艺表实体类
 * 
 * @author aps
 * @since 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("aps_craft")
public class ApsCraft extends BaseEntity {
    
    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键ID", example = "1")
    private String id;

    @TableField("tenant_id")
    private String tenantId;
    
    /**
     * 工艺编码
     */
    @TableField("craft_code")
    @Schema(description = "工艺编码", example = "CRAFT001")
    private String craftCode;

    @TableField("craft_name")
    @Schema(description = "工艺名称", example = "CRAFT001")
    private String craftName;
    
    /**
     * 关联产品ID
     */
    @TableField("craft_product_id")
    @Schema(description = "关联产品ID", example = "PROD001")
    private String craftProductId;
    
    /**
     * 标准总工时（所有工序的和，用于粗产能评估）
     */
    @TableField("craft_total_std_time")
    @Schema(description = "标准总工时（所有工序的和，用于粗产能评估）", example = "10.5")
    private BigDecimal craftTotalStdTime;
    
    /**
     * 工艺描述
     */
    @TableField("craft_description")
    @Schema(description = "工艺描述", example = "零件加工工艺流程")
    private String craftDescription;
}
